/**
 * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *     http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 **/

.product-detail-container {
  padding: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.product-detail {
  display: flex;
  flex-direction: column;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

@media (min-width: 768px) {
  .product-detail {
    flex-direction: row;
  }
}

.product-image {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
}

@media (min-width: 768px) {
  .product-image {
    width: 50%;
  }
}

.product-info {
  padding: 2rem;
  flex: 1;
}

.product-name {
  font-size: 1.8rem;
  color: #333;
  margin-bottom: 1rem;
}

.product-price {
  font-size: 1.5rem;
  color: #e74c3c;
  font-weight: bold;
  margin-bottom: 1.5rem;
}

.product-quantity {
  font-size: 1rem;
  color: #666;
  margin-bottom: 1rem;
}

.product-description {
  font-size: 1rem;
  line-height: 1.6;
  color: #555;
  margin-bottom: 2rem;
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.back-to-products {
  display: inline-block;
  background-color: #3498db;
  color: white;
  border: none;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s;
}

.back-to-products:hover {
  background-color: #2980b9;
}

.add-to-cart-button {
  background-color: #27ae60;
  color: white;
  border: none;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.add-to-cart-button:hover {
  background-color: #219653;
}

.product-not-found {
  text-align: center;
  padding: 3rem;
  color: #e74c3c;
  font-size: 1.5rem;
}

.product-feedback {
  margin-top: 1rem;
  padding: 0.8rem;
  border-radius: 4px;
  font-size: 0.9rem;
}

.product-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.product-error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}